package me.zhengjie.modules.account.factory.entity;


import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * 利率
 */
@Data
public class InterestRate {
    private static final long serialVersionUID = 1234567L;
    private String aaa030; // 利率类型
    private Integer aae041; // 开始年月
    private Integer aae042; // 终止年月
    private String aaa032; // 利率名称
    private BigDecimal aaa031; // 利率
    private String aab359; // 参保所属机构
    private String aae013; // 备注
    private Integer aae036; // 利率维护时间

    public InterestRate(String aaa030, Integer aae041, Integer aae042) {
        this.aaa030 = aaa030;
        this.aae041 = aae041;
        this.aae042 = aae042;
    }

    public InterestRate(String aaa030, Integer aae041, Integer aae042, String aaa032, BigDecimal aaa031, String aab359, String aae013) {
        this.aaa030 = aaa030;
        this.aae041 = aae041;
        this.aae042 = aae042;
        this.aaa032 = aaa032;
        this.aaa031 = aaa031;
        this.aab359 = aab359;
        this.aae013 = aae013;
    }

    public InterestRate(){

    }

    public static List<InterestRate> findInterestRates(){
        List<InterestRate> interestRates = new ArrayList();
//        List<MyMap> interestRates_tmp = GetCachedData.getAa03ByRedis();
//        interestRates_tmp.forEach(map ->{
//            interestRates.add(MyMap.convertToDomain(map, InterestRate.class));
//        });
        return interestRates;
    }

    public static List<InterestRate> findInterestRatesByAaa030(String aaa030) {
        List<InterestRate> interestRates = new ArrayList();
//        List<MyMap> interestRates_tmp = GetCachedData.getAa03ByRedis();
//        interestRates_tmp.forEach(map -> {
//            if (NPETool.isEmptyReturnString(map.get("aaa030")).equals(aaa030)) {
//                interestRates.add(MyMap.convertToDomain(map, InterestRate.class));
//            }
//        });
        return interestRates;
    }

}
